package com.york.subject.domain.convert;

import com.york.subject.domain.entity.SubjectAnswerBO;
import com.york.subject.domain.entity.SubjectInfoBO;
import com.york.subject.infra.basic.entity.SubjectInfo;
import com.york.subject.infra.basic.entity.SubjectJudge;
import com.york.subject.infra.basic.entity.SubjectRadio;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 转化单选题目
 */
@Mapper
public interface RadioSubjectConverter {

    // 返回实现接口的实例
    RadioSubjectConverter INSTANCE = Mappers.getMapper(RadioSubjectConverter.class);

    SubjectRadio convertBoToEntity(SubjectAnswerBO subjectAnswerBO);

    List<SubjectAnswerBO> convertEntityListToBOList(List<SubjectRadio> subjectRadioList);

}
